#ifndef __FSORDER__
#define __FSORDER__

struct apr_queue_t;
extern apr_queue_t* jobqueue;
extern apr_queue_t* resultqueue;
extern apr_queue_t* authqueue ;
extern apr_queue_t* authresultqueue ;

struct callserver_info_t
{
    char* server;
    int  port;
    char* user;
    char* pwd;
    callserver_info_t()
            : server(NULL)
            , port(8021)
            , user(NULL)
            , pwd(NULL)
    {

    }
    ~callserver_info_t()
    {
        if (server != NULL)
        {
            free(server);
            server = NULL;
        }

        if (user != NULL)
        {
            free(user);
            user = NULL;
        }

        if (pwd != NULL)
        {
            free(pwd);
            pwd = NULL;
        }
    }
};
struct ordercall_info_t
{
    string id;
    string acct;
    string caller;
    string called;
    string result;
};

struct orderAuth_info_t
{
	string id;
	string acct;
	string caller;
	string authcode;
	string result;
};

#endif  //__FSORDER__

